package com.iseastar.guojiang.model;

import java.io.Serializable;
import java.util.ArrayList;

import droid.frame.utils.android.MathUtils;

/**
 * Created by lidandan on 2018/5/5.
 */

public class RegisterCourierMaterialBean implements Serializable {

    /**
     * box : {"description":"箱子","image":"aaa","images":["aaaa","bbb"],"name":"箱子","type":4}
     * deposit : 16000
     * helmet : {"description":"头盔","image":"aaa","images":["aaaa","bbb"],"name":"头盔","type":3}
     * vest : {"description":"马甲","image":"aaa","images":["aaaa","bbb"],"name":"马甲","type":2}
     * workCard : {"description":"工牌","image":"aaa","images":["aaaa","bbb"],"name":"工牌","type":1}
     */

    private MaterialBean box;//箱子
    private double deposit;
    private MaterialBean helmet;
    private MaterialBean vest;
    private MaterialBean workCard;

    public MaterialBean getBox() {
        return box;
    }

    public void setBox(MaterialBean box) {
        this.box = box;
    }

    public double getDeposit() {
        return MathUtils.round(MathUtils.div(deposit, 100), 2);
    }

    public void setDeposit(double deposit) {
        this.deposit = deposit;
    }

    public MaterialBean getHelmet() {
        return helmet;
    }

    public void setHelmet(MaterialBean helmet) {
        this.helmet = helmet;
    }

    public MaterialBean getVest() {
        return vest;
    }

    public void setVest(MaterialBean vest) {
        this.vest = vest;
    }

    public MaterialBean getWorkCard() {
        return workCard;
    }

    public void setWorkCard(MaterialBean workCard) {
        this.workCard = workCard;
    }

    public static class MaterialBean implements Serializable {
        /**
         * description : 箱子
         * image : aaa
         * images : ["aaaa","bbb"]
         * name : 箱子
         * type : 4
         */

        private String description;
        private String image;
        private String name;
        private int type;
        private ArrayList<String> images;

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public ArrayList<String> getImages() {
            return images;
        }

        public void setImages(ArrayList<String> images) {
            this.images = images;
        }
    }

}

